package cn.sxkawzp.validate.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ValidateAspectJ {

    @Pointcut("@target(cn.sxkawzp.validate.aop.annotation.SymbolPointCutAnnotation)")
    public void pointCut(){}

    @Before("pointCut()")
    public void requestBeforeValidate(JoinPoint point){
        Object[] args = point.getArgs();
        // todo 校验 设值
    }

}
